package aop_1;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2020/10/20 11:37
 */

import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author Burns
 * @DAte 2020/10/20 11:37
 * @Version 1.0
 **/
@Service
public class UserServiceImpl implements UserService {
    @Override
    public void printUser(User user) {
        if(user == null){
            throw new RuntimeException("检查用户查书是否为空 。。。。");

        }

        System.out.println("id = " + user.getId());
        System.out.println("\t userName = " + user.getUserName());
        System.out.println("\tnote = " + user.getNote());
    }
}
